import 'package:flutter/material.dart';
import 'header.dart';
import 'function_button.dart';
import '../info/index.dart';
import 'advertisement.dart';

class TabProfile extends StatelessWidget {
  const TabProfile({ Key key }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        elevation: 0,
        title: Text('我的'),
        actions: [
          IconButton(
            onPressed: (){
              Navigator.of(context).pushNamed('setting');
            }, 
            icon: Icon(Icons.settings)
          )
        ],
      ),
      body: ListView(
        children: [
          Header(),
          FunctionButton(),
          Advertisement(),
          Info(showTitle: true,)
        ],
      ),
    );
  }
}